import java.util.Random;
import java.util.Scanner;

public class RandomStudent {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("****智能2121点名程序****");
        System.out.println("请输入人数：");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();

        String[] students = {
                "严苏鹏",
                "宗俊翼",
                "丁悦",
                "马俊光",
                "韦俊杰",
                "王承源",
                "王佳辉",
                "王洋",
                "王梓",
                "史童",
                "刘尔欢",
                "吕杰",
                "孙旭东",
                "孙培育",
                "朱佳佳",
                "严彤",
                "吴开傲",
                "吾木提瓦尔·地里夏提",
                "张俪辉",
                "张登月",
                "李凯旋",
                "杨涛",
                "杨静怡",
                "陆明华",
                "陈姝灼",
                "陈星宇",
                "林子轩",
                "施怡",
                "胡开斌",
                "柳雅芬",
                "郝文强",
                "徐怡雯",
                "徐楠",
                "陶晓蝶",
                "高诗权",
                "黄文",
                "黄宇",
                "彭旭",
                "彭妍",
                "谢子檑",
                "缪杨洋",
                "蔡梓铭"
        };
        System.out.println("总人数：" + students.length);

        System.out.println("幸运儿：");
        for (int i = 0; i < num; i++) {
            Thread.sleep(1000);
            Random random = new Random();
            int index = random.nextInt(students.length);  // 0 ~ students.length - 1
            System.out.println(students[index]);
        }
    }
}
